<template>
  <div class="row-box">
    <div class="row-name">{{ name }}</div>
    <div class="row-val">
      {{ val }}

      <i
        class="copy-i el-icon-copy-document"
        @click="$copyTxt($event, val,'已复制到剪贴板')"
      ></i>
    </div>
  </div>
</template>
<script>
export default {
  name: "RowBox",
  props: {
    name: {
      type: String,
      default: "",
    },
    val: {
      type: String,
      default: "",
    },
  },

  components: {},
  data() {
    return {};
  },
  created() {},
  methods: {},
};
</script>
<style lang="scss" scoped>
.row-box {
  display: flex;
  color: #999;

  margin-bottom: 10px;
  align-items: center;
  .row-name {
    width: 100px;
    text-align: left;
    margin-right: 10px;
  }
}
</style>
